package com.tanhua.server.exception;

import com.tanhua.model.vo.ErrorResult;
import lombok.Data;

@Data
public class BusinessException extends RuntimeException {
    private ErrorResult vo;
    //构造方法
    public BusinessException(ErrorResult vo){
        super(vo.getErrMessage());  //调用父类的构造方法
        this.vo = vo;
    }
}
